package com.mccrea.pattern.adapter.classadapter;

/**
 * @Classname VoltageAdapter
 * @Description 适配器类
 * @Date 2021/5/8 0008 15:13
 * @Created by Mccrea_Gao
 */
public class VoltageAdapter extends Voltage220V implements IVoltage5V {
    @Override
    public int outPut5V() {
        // 获取220V电压
        int srcV = super.outPut220V();
        // 降压到5V
        return srcV / 44;
    }
}
